var express = require('express');
var router = express.Router();
let { shopmodel } = require('../model/model')
/* GET home page. */
router.get('/getlist', async (req, res) => {
    let { id } = req.query
    // 分页操作
    let data = await shopmodel.find({ _id: id })
    res.send({
        code: 200,
        data
    })
});



module.exports = router;
